package com.mmy.fta.usercenter.enums;

/**
 * @author guohao.xie
 * @apiNote
 * @exportable
 * @since 2021/11/4
 */
public enum ShipperMemberShipTypeEnums {
    //尊享会员 冷链会员
    // 尊无 冷无
    ZERO(0,"00"),

    // 尊无 冷有
    FIRST(1,"01"),

    // 尊有 冷无
    SECOND(2,"10"),

    // 尊有 冷有
    THIRD(3,"11");

    private int code;
    private String msg;

    private ShipperMemberShipTypeEnums(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    public static ShipperMemberShipTypeEnums shipperMemberShipTypeEnums(Integer code) {
        if (null == code) {
            return null;
        } else {
            ShipperMemberShipTypeEnums[] var1 = values();
            int var2 = var1.length;

            for (int var3 = 0; var3 < var2; ++var3) {
                ShipperMemberShipTypeEnums shipperMemberShipTypeEnums = var1[var3];
                if (shipperMemberShipTypeEnums.code == code) {
                    return shipperMemberShipTypeEnums;
                }
            }

            return null;
        }
    }
}
